package com.cxhc.app.api.hcdoc;


import com.cxhc.app.api.hcdoc.vo.HdUserInfoVo;
import com.cxhc.app.api.mapper.hcdoc.HcDocUserMapStructMapper;
import com.cxhc.common.core.controller.BaseController;
import com.cxhc.common.core.domain.AjaxResult;
import com.cxhc.common.core.page.TableDataInfo;
import com.cxhc.common.utils.StringUtils;
import com.cxhc.system.domain.hcdoc.HdUserInfo;
import com.cxhc.system.service.hcdoc.HcDocUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 用户信息Controller
 *
 * @author Dhq
 * @date 2024-08-14
 */
@RestController
@RequestMapping("/api/minio")
public class MinioApi extends BaseController {

    @Autowired
    private HcDocUserService hcDocUserService;

    /**
     * 获取用户信息详细信息
     */
    @RequestMapping(value = "/getInfoByAccount")
    public AjaxResult getInfoByAccount(String accountNo) {
        if (StringUtils.isEmpty(accountNo)){
            return error("账号不可为空!!!");
        }
        return success(hcDocUserService.selectUserByAccountNoForHCDoc(accountNo));
    }


}
